package com.hundsun.fmbp.deploy.controller.param;


import com.hundsun.fmbp.deploy.mybatis.hsfsk.HsfskMapper;
import com.hundsun.fmbp.deploy.mybatis.bean.Customers;
import com.hundsun.fmbp.deploy.mybatis.bean.UamMenus;
import com.hundsun.fmbp.deploy.mybatis.hscon.HsconMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class indexController {

    @Autowired
    private HsfskMapper otMapper;

    @Autowired
    private HsconMapper hsconMapper;

    @GetMapping("/hello")
    @ResponseBody
    public String hello(){
        return "hello";
    }


    @GetMapping("/u")
    public UamMenus show1(){
        return hsconMapper.getCustomers1();
    }

    @GetMapping("/c")
    public Customers show111(){
        return otMapper.getmenus();
    }

}
